<template>
  <!-- <component :is="component" v-on="$listeners" v-bind="bindProps" v-model="fieldValue"></component> -->
  <el-time-picker v-on="$listeners" v-bind="$attrs" v-model="fieldValue"></el-time-picker>
</template>

<script>
  export default {
    props: {
      value: {
        type: [String, Date, Array]
      },
      // 是否picker模式
      picker: Boolean,
      // for time-select
      start: String,
      // for time-select
      end: String,
      // for time-select
      step: String,
      // for time-select
      minTime: String,
      // for time-select
      maxTime: String,
      // for time-picker
      selectableRange: [String, Array]
    },
    computed: {
      fieldValue: {
        get() {
          console.log(this.value,'______');
          return this.value
        },
        set(val) {
          this.$emit('input', val)
        }
      },
      
    }
  }
</script>
